var express = require('express');
var router = express.Router();
var express =require('../mysql/index');
const mysql = require('../mysql/index');

/* GET home page. */
router.get('/', async (req, res, next)=> {
  let resulit= await mysql.query({
    sql:'SELECT * FROM `user`',
    value:[]
  })

  res.json(resulit);
});

module.exports = router;
